package com.lyeducation;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

//import org.springframework.scheduling.annotation.EnableAsync;

// @SpringBootApplication
// @EnableAsync
// @ServletComponentScan

// @ComponentScan(excludeFilters = {
//        @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes =
// SimpleApplicationEventMulticaster.class)})

@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@EnableAsync
@EnableScheduling
@ServletComponentScan
@EnableAspectJAutoProxy
public class LyEducationApplication {
  public static void main(String[] args) throws Exception {
    SpringApplication.run(LyEducationApplication.class, args);
  }
}
